import request  from '@/utils/request';

import { BASE_URL } from '@/config/query';

export async function queryTotal() {
  return request(`${BASE_URL}/device/count_statistics`);
}

export async function queryStatisticalIndex() {
  return request(`${BASE_URL}/device/page_statistics`)
}

export async function modifyDevice(params) {
  return request(`${BASE_URL}/owner_fire_device/modify`, params)
}

export async function queryDevices() {
  return request(`${BASE_URL}/owner_fire_device/detail`)
}

export async function modifyCylinder(params) {
  return request(`${BASE_URL}/owner_fire_device/steel_cylinder/modify`, params);
}

export async function createCylinder(params) {
  return request(`${BASE_URL}/owner_fire_device/steel_cylinder/create`, params);
}

export async function queryCylinder(params) {
  return request(`${BASE_URL}/owner_fire_device/steel_cylinder/page`, params);
}

export async function modifyProtected(params) {
  return request(`${BASE_URL}/owner_fire_device/protected_area/modify`, params);
}

export async function createProtected(params) {
  return request(`${BASE_URL}/owner_fire_device/protected_area/create`, params);
}

export async function queryProtected(params) {
  return request(`${BASE_URL}/owner_fire_device/protected_area/page`, params);
}